import java.util.Arrays;

class Array_01{
  public static void main(String args[]){
    System.out.println("Array Demo");

    /*
    数组创建
    */
    int intArray[] = new int[3];
    intArray[0] = 10;
    System.out.println("数组int:"+intArray[0]);

    String strArray[] = new String[3];
    strArray[0] = "10";
    System.out.println("数组String1:"+intArray[0]);

    String strArray2[] = {"aa","bb"};
    
    System.out.println("数组String2:"+strArray2);

    /*
    数组操作
    */
    System.out.println("数组长度:"+strArray2.length);

    /*
    数组循环
    */
    for(String x:strArray2){
      System.out.println("数组String2:"+x);
    }

    /*
    是否存在
    */
    System.out.println("数组String2是否包含 aa:"+Arrays.asList(strArray2).contains("aa"));






  }
}